$OpenBSD: patch-pictures_c,v 1.4 2009/05/04 23:24:09 pirofti Exp $
--- pictures.c.orig	Sun Apr 19 13:40:53 2009
+++ pictures.c	Sun Apr 19 13:41:52 2009
@@ -223,7 +223,7 @@ parse_slideshow(const char *slideshowtext, double flas
   int i, clock_xoff = -1;
 
   if (strlen(slideshowtext) >= BUFSIZ) return 0;
-  strcpy(buf, slideshowtext);
+  strlcpy(buf, slideshowtext, sizeof(buf));
   s = buf;
 
   gfs = Gif_NewStream();
@@ -243,9 +243,9 @@ parse_slideshow(const char *slideshowtext, double flas
 
     if (n[0] == '&' || n[0] == '*') {
       /* built-in image */
-      strcpy(name, n + 1);
+      strlcpy(name, n + 1, sizeof(name));
       if (mono)
-	  strcat(name, "mono");
+              strlcat(name, "mono", sizeof(name));
       i = strlen(name);
       add = get_built_in_image(name);
       /* some images don't have monochromatic versions; fall back on color */
